package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-09-29
 */
@TableName("tb_special_price")
public class SpecialPrice extends Model<SpecialPrice> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号,主键,自增,表唯一
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 主键,全局唯一
     */
	private String uuid;
    /**
     * 商店uuid
     */
	@TableField("shop_uuid")
	private String shopUuid;
    /**
     * 商品uuid
     */
	@TableField("goods_uuid")
	private String goodsUuid;
    /**
     * 商品详情uuid
     */
	@TableField("goods_detailed_uuid")
	private String goodsDetailedUuid;
    /**
     * 特价价格
     */
	@TableField("special_price")
	private Double specialPrice;
	@TableField("limited_number")
	private Integer limitedNumber;
    /**
     * 团购最小数量
     */
	@TableField("min_number")
	private Integer minNumber;
    /**
     * 开始时间
     */
	@TableField("start_time")
	private Date startTime;
    /**
     * 结束时间
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 特价类型，0：普通，1：团购，2闪购
     */
	private Integer type;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 创建者
     */
	private String creator;
    /**
     * 更新时间
     */
	private Date updatetime;
    /**
     * 修改者
     */
	private String mender;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getShopUuid() {
		return shopUuid;
	}

	public void setShopUuid(String shopUuid) {
		this.shopUuid = shopUuid;
	}

	public String getGoodsUuid() {
		return goodsUuid;
	}

	public void setGoodsUuid(String goodsUuid) {
		this.goodsUuid = goodsUuid;
	}

	public String getGoodsDetailedUuid() {
		return goodsDetailedUuid;
	}

	public void setGoodsDetailedUuid(String goodsDetailedUuid) {
		this.goodsDetailedUuid = goodsDetailedUuid;
	}

	public Double getSpecialPrice() {
		return specialPrice;
	}

	public void setSpecialPrice(Double specialPrice) {
		this.specialPrice = specialPrice;
	}

	public Integer getLimitedNumber() {
		return limitedNumber;
	}

	public void setLimitedNumber(Integer limitedNumber) {
		this.limitedNumber = limitedNumber;
	}

	public Integer getMinNumber() {
		return minNumber;
	}

	public void setMinNumber(Integer minNumber) {
		this.minNumber = minNumber;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SpecialPrice{" +
			", id=" + id +
			", uuid=" + uuid +
			", shopUuid=" + shopUuid +
			", goodsUuid=" + goodsUuid +
			", goodsDetailedUuid=" + goodsDetailedUuid +
			", specialPrice=" + specialPrice +
			", limitedNumber=" + limitedNumber +
			", minNumber=" + minNumber +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", type=" + type +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", creator=" + creator +
			", updatetime=" + updatetime +
			", mender=" + mender +
			"}";
	}
}
